package com.southpark.demo.control.commands.data
{
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.southpark.demo.control.commands.BaseCommand;
	import com.southpark.demo.control.events.data.SetDataEvent;
	import com.southpark.demo.control.proxies.data.SetDataProxy;
	import com.southpark.demo.control.responders.data.SetDataResponder;
	import com.southpark.framework.control.responders.IResponder;

	public class SetDataCommand extends BaseCommand
	{
		override public function execute(cairngormEvent:CairngormEvent):void
		{
			var event:SetDataEvent = cairngormEvent as SetDataEvent;
			var responder:IResponder = new SetDataResponder(event.responder);
			var proxy:SetDataProxy = new SetDataProxy(responder);
			
			proxy.execute(event.param1,event.param2);
		}
		
	}
}